﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Submarines
{
    class Diag
    {
        public static void AddLog(string Source ,string Message)
        {
            EventLog el = new EventLog("Battleships Log", ".", "Client");
            el.WriteEntry(Source + " Msg:" + Message, EventLogEntryType.Information);
        }
        public static void AddLog(string Source, string Message, EventLogEntryType EntryType)
        {
            EventLog el = new EventLog("Battleships Log", ".", "Client");
            el.WriteEntry(Source + " Msg:" + Message, EntryType);
        }

    }
}
